/**
 * Project Name:scb_sms
 * File Name:TreeNode.java
 * Package Name:com.scb.dev.sms.util.tree
 * Date:Nov 8, 201810:42:02 AM
 * Copyright (c) 2018, Y-Rainson All Rights Reserved.
 *
 */
package com.scb.dev.mms.util.tree;

/**
 * ClassName: TreeNode <br/>
 * Description: TODO ADD REASON(可选). <br/><br/>
 * date: Nov 8, 2018 10:42:02 AM <br/>
 *
 * @author Y-Rainson
 * @version V1.0
 * @since JDK 1.8
 */
public class TreeNode {
	 /**
     * 节点id
     */
    private String id;
    /**
     * 父节点 默认0为根节点	
     */
    private String parentId;
    /**
     * 节点名称
     */
    private String name;
    /**
     * 是否有子节点
     */
    private boolean hasChild;
    /**
     * url
     */
    private String url;

    public TreeNode(String id, String parentId, String name, String url) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.url = url;
    }

	/**
	 * id.
	 *
	 * @return  the id
	 */
	public final String getId() {
		return id;
	}

	/**
	 * id.
	 *
	 * @param   id    the id to set
	 */
	public final void setId(String id) {
		this.id = id;
	}

	/**
	 * parentId.
	 *
	 * @return  the parentId
	 */
	public final String getParentId() {
		return parentId;
	}

	/**
	 * parentId.
	 *
	 * @param   parentId    the parentId to set
	 */
	public final void setParentId(String parentId) {
		this.parentId = parentId;
	}

	/**
	 * name.
	 *
	 * @return  the name
	 */
	public final String getName() {
		return name;
	}

	/**
	 * name.
	 *
	 * @param   name    the name to set
	 */
	public final void setName(String name) {
		this.name = name;
	}

	/**
	 * hasChild.
	 *
	 * @return  the hasChild
	 */
	public final boolean isHasChild() {
		return hasChild;
	}

	/**
	 * hasChild.
	 *
	 * @param   hasChild    the hasChild to set
	 */
	public final void setHasChild(boolean hasChild) {
		this.hasChild = hasChild;
	}

	/**
	 * url.
	 *
	 * @return  the url
	 */
	public final String getUrl() {
		return url;
	}

	/**
	 * url.
	 *
	 * @param   url    the url to set
	 */
	public final void setUrl(String url) {
		this.url = url;
	}
	
	
    
    
}
